<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>订单管理</title>
		<link rel="icon" href="${project_name}/image/logo.png" >
		<link rel="stylesheet" type="text/css" href="${project_name}/css/head.css" />
		<link rel="stylesheet" type="text/css" href="${project_name}/css/footer.css" />
		<link rel="stylesheet" type="text/css" href="${project_name}/css/suercenter.css" />
		<script type="text/javascript" src="${project_name}/js/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="${project_name}/js/order.js"></script>
		<script>
			$(() => {
				$(".pay").click((e) => {
					let orderId = $(e.currentTarget).attr("orderId");
					let totalPrice = $(e.currentTarget).attr("totalPrice");

					//location = "${project_name}/pay.jsp?orderId=" + orderId + "&totalPrice=" + totalPrice
					location = "${project_name}/order/pay?orderId=" + orderId + "&totalPrice=" + totalPrice


				})
			})
		</script>

		<script>
			$(function () {
				path("${project_name}/image/展开1.png","${project_name}/image/展开2.png");
			})
		</script>
	</head>
	<body>
		<!--顶部公用-->
		<jsp:include page="public_header.jsp"></jsp:include>
		<div class="w1000 ClearFix margin_top20">
			<jsp:include page="public_left.jsp"></jsp:include>
			<!--左侧end-->
			<div class="ur_right">
				<!--uer_top-->
				<div class="ur_location">
					<a>我的开心买</a>
					<span>&gt;</span>
					<a class="a_cur">订单管理</a>
				</div>
				<!--uer_top-->
				<div class="o_o_part">
					<div class="part_h2">订单详情</div>
				</div>
				<!--pathend-->
				<div class="addr_list">
					<table class="order_table">
						<thead class="theads">
							<tr>
								<th>订单号</th>
								<th>收货人</th>
								<th>收货人地址</th>
								<th>手机</th>
								<th>操作</th>
							</tr>
						</thead>

						<tbody>

							<c:forEach var="t" items="${tuple4List}">
								<tr class="tr-line">
									<td>${t._1().id}</td>
									<td>${t._2().consignee}</td>
									<td>${t._2().details}</td>
									<td>${t._2().tel}</td>
									<td>
										<c:if test="${t._1().status == 'no_pay'}">
											<img src="${project_name}/image/付款.png" title="支付" class="pay"
												 totalPrice="${t._4()}"
												 orderId="${t._1().id}">
										</c:if>


										<img src="${project_name}/image/展开1.png" title="展开/缩回" class="zk">
									</td>
								</tr>
								<tr class="detail">
									<td colspan="5">
										<table style="width: 100%; text-align: center;">
											<tr style="background: #ececec">
												<th>商品名称</th>
												<th>商品单价</th>
												<th>购买数量</th>
											</tr>

											<c:forEach var="por" items="${t._3()}">
												<tr>
													<td>${por._1().name}</td>
													<td>${por._1().price}</td>
													<td>${por._2().amount}</td>
												</tr>
											</c:forEach>
										</table>
									</td>
								</tr>
							</c:forEach>


							<tr class="tr-line">
								<td colspan="5">您还没有任务收货地址 </td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<!--底部公用-->
	    <div class="footer">
	    	<div class="footer_b w1200"><img src="${project_name}/image/foot_img1.jpg"/></div>
	    	<div class="footer_help w1200">
	    		<div class="footer1_l">
	    			<dl class="helpDl">
	    				<dt><h5>使用帮助</h5></dt>
	    				<dd><a href="">税费收取规则 </a></dd>
	    				<dd><a href="">新手指南 </a></dd>
	    			    <dd><a href="">常见问题 </a></dd>
	    				<dd><a href="">用户协议 </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>会员服务</h5></dt>
	    				<dd><a href="">积分政策  </a></dd>
	    				<dd><a href="">会员权益  </a></dd>
	    			    <dd><a href="">会员等级  </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>支付方式</h5></dt>
	    				<dd><a href="">积分支付  </a></dd>
	    				<dd><a href="">货到付款  </a></dd>
	    			    <dd><a href="">在线支付  </a></dd>
	    				<dd><a href="">优惠券支付  </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>配送方式</h5></dt>
	    				<dd><a href="">包邮政策   </a></dd>
	    				<dd><a href="">费用说明   </a></dd>
	    			    <dd><a href="">配送说明   </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>售后服务</h5></dt>
	    				<dd><a href="">电子发票   </a></dd>
	    				<dd><a href="">售后咨询   </a></dd>
	    			    <dd><a href="">退货办理   </a></dd>
	    				<dd><a href="">退货政策   </a></dd>
	    			</dl>
	    		</div>
	    		<div class="footer1_r">
	    			<ul>
	    				<li>
	    					<h2>手机开心买</h2>
	    					<img src="${project_name}/image/footer_ewm_01.png"/>
	    					<p>下载移动客户端</p>
	    				</li>
	    				<li>
	    					<h2>开心买微信</h2>
	    					<img src="${project_name}/image/footer_ewm_02.png"/>
                            <p>开心买官方微信</p>
	    				</li>
	    			</ul>
	    		</div>
	    	</div>
	        <div class="footer_nav">
	        	<div class="w720">
	        		<ul>
	        			<li>
	        				<a href="">关于开心买 </a>
	        				<span class="line"></span>
	        			</li>
	        			<li>
	        				<a href="">投资者关系 </a>
	        				<span class="line"></span>
	        			</li>
	        			<li>
	        				<a href="">商家入驻  </a>
	        				<span class="line"></span>
	        			</li>
	        			<li>
	        				<a href="">联系我们 </a>
	        				<span class="line"></span>
	        			</li>
	        		</ul>
	        	</div>
	        </div>
	        <div class="footer_bottom">
	        	<div class="w1200">
	        		<p>
	        			<span class="font_arial">Copyright© 2006-2016 happigo. All Rights Reserved </span>
                                           免费服务热线: 400-705-1111 | 固话也可拨打: 800-705-1111
                        <span class="font_arial">E-Mail: service@happigo.com</span><br>
                                           湘ICP备12000157号 信息网络传播视听节目许可证号：1810530
	        		</p>
	        		<p class="footer_b">
	        			<a href="http://www.itrust.org.cn/home/index/itrust_certifi/wm/2782875193.jsp">
	        				<img src="${project_name}/image/foot_img3.png"/>
	        			</a>
	        			<a href="https://search.szfw.org/cert/l/CX20150428007576007720">
	        				<img src="${project_name}/image/foot_img4.png"/>
	        			</a>
	        		</p>
	        	</div>
	        </div>
	    </div>
	    <!--底部end-->
	</body>
</html>
